package org.anupta.realm.server.realm.packet.login.agreed;

import org.anupta.realm.main.Main;
import org.anupta.realm.server.realm.client.RealmClient;
import org.anupta.realm.server.realm.packet.RealmPacket;

public class AccountPseudo extends RealmPacket {

	public AccountPseudo(RealmClient client) {
		super(client);
		pack();
		doPacket();
	}

	@Override
	public void unpack() {
	}

	@Override
	public void pack() {
		packetOut.append("Ad").append(client.getAccount().getPseudo());
	}

	@Override
	public void doPacket() {
		client.send(packetOut.toString());
		Main.out.println(new StringBuilder("AccountPseudo packet sended to : ").append(client.getIp()).toString());
	}
}
